package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_sharecircle")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class ShareCircleModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;//关联user表
    private String content;
    private Timestamp crtTime;
    private Integer type;//判断1个人2公司

    @TableField(exist = false)
    private List<ShareLikesComModel> shareLikesComList;//存放评论点赞
    @TableField(exist = false)
    private List<ShareCircleAtlasModel> atlasList;//存放图集
    @TableField(exist = false)
    private String faceUrl;//头像
    @TableField(exist = false)
    private String realName;//真实姓名
    @TableField(exist = false)
    private String enterpriseName;//公司名称
    @TableField(exist = false)
    private Integer circleType;//1查全部2查个人
    @TableField(exist = false)
    private List<ShareCircleAtlasModel> imgList;//图集
    @TableField(exist = false)
    private List<ShareCircleAtlasModel> videoList;//图集
    @TableField(exist = false)
    private Integer likeCount;//点赞数
    @TableField(exist = false)
    private String formatTime;
    @TableField(exist = false)
    private Integer sentry;//哨兵

    @TableField(exist = false)
    private Integer limit;
    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer total;


}
